package com.ghy.service;

import com.ghy.dto.CourseInsertDTO;
import com.ghy.dto.CoursePageDTO;
import com.ghy.dto.CourseUpdateDTO;
import com.ghy.vo.CategorySimpleListVO;
import com.ghy.vo.CourseSimpleListVO;
import com.mybatisflex.core.paginate.Page;
import com.mybatisflex.core.service.IService;
import com.ghy.entity.Course;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

/**
 * 课程表 服务层。
 *
 * @author ghy
 * @since 2024-12-22
 */
public interface CourseService extends IService<Course> {

    boolean insert(CourseInsertDTO dto);
    Course select(Long id);
    List<CourseSimpleListVO> simpleList();
    Page<Course> page(CoursePageDTO dto);
    boolean update(CourseUpdateDTO dto);
    boolean delete(Long id);
    boolean deleteBatch(List<Long> ids);

    String uploadCover(MultipartFile avatarFile, Long id);
    String uploadSummary(MultipartFile avatarFile, Long id);

    //String uploadSummary(MultipartFile summaryFile, Long id);

}
